<?php

require_once 'InputValidator.php';

class MatchValidator implements InputValidator{
    
    private $matchValue;
    private $matchName;
    
    public function __construct($matchName, $matchValue = null){
        $this->matchName = $matchName; 
        $this->matchValue = $matchValue;
    }
    
    public function getMatchName(){return $this->matchName;}
    public function setMatchValue($value){$this->matchValue = $value;}
    public function validate($input){return $input == $this->matchValue;}

}
?>
